home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power CD-ROM!! 8
/
Power CD-ROM 8.iso
/
windows
/
winbatch
/
log.wb_
< prev
next >
Wrap
Text File
|
1994-08-28
|
575b
|
23 lines
Message("Information","LOGGER.WBT is an example of how to write a logging file with WinBatch. Inspect the file for more information.")
exit
LogFile="C:\TEMP\MYLOG.INI"
User=AskLine("LOG","Enter User Name","Fred")
TimeOn=DateTime()
Program=AskLine("LOG","Enter desired Program","NOTEPAD.EXE")
RunWait(Program,"")
TimeOff=DateTime()
LogLine=strcat(User,"|",Program,"|",TimeOn,"|",TimeOff)
Counting=IniReadPvt("LOG","Counter",0,LogFile)
Counting=Counting+1
IniWritePvt("LOG","Counter",Counting,LogFile)
IniWritePvt("LOG",Counting,LogLine,LogFile)